export function getNowFormatDate() {//获取当前时间
  var date = new Date();
  var seperator1 = "-";
  var seperator2 = ":";
  var month = date.getMonth() + 1<10? "0"+(date.getMonth() + 1):date.getMonth() + 1;
  var strDate = date.getDate()<10? "0" + date.getDate():date.getDate();
  var strHours=date.getHours()<10? "0" + date.getHours():date.getHours();
  var getMinutes=date.getMinutes()<10? "0" + date.getMinutes():date.getMinutes();
  var getSeconds=date.getSeconds()<10? "0" + date.getSeconds():date.getSeconds();

  var currentdate = date.getFullYear() + seperator1  + month  + seperator1  + strDate
    + " "  + strHours  + seperator2  + getMinutes
    + seperator2 + getSeconds;
  return currentdate;
}
